import httpRequest from '../../utils/request'
import modules from '../modules'
const defaultRoute = 'Crew_TeamType'
const controllerName = 'TeamType'

export interface TeamTypeParam {
  TeamTypeName: string | null
  PageIndex: number
  PageSize: number
  totalCount: number
 
}


// 获取班组类型列表
export function ApiGetCrew_TeamTypePageListAsync(param: TeamTypeParam) {
  return httpRequest({
    url: `${modules.crewModuleUrl}/${controllerName}/Get${defaultRoute}PageList`,
    method: "Post",
    data: param,
  });
}

// 批量删除班组类型
export function ApiDeletionCrew_TeamTypeAsync(param: string[]) {
  return httpRequest({
    url: `${modules.crewModuleUrl}/${controllerName}/Deletion${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 添加班组类型
export function ApiCreateCrew_TeamTypeAsync(param: object) {
  return httpRequest({
    url: `${modules.crewModuleUrl}/${controllerName}/Create${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


//更新班组类型
export function ApiUpdateCrew_TeamTypeAsync(param: object) {
  return httpRequest({
    url: `${modules.crewModuleUrl}/${controllerName}/Update${defaultRoute}`,
    method: "Post",
    data: param,
  });
}